package Modele;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class CollectionHistorique implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7553967369362985703L;
	
	
	private List<IHistorique> collecDhisto;
	
	public CollectionHistorique() {
		collecDhisto = new ArrayList<>();
	}

	public List<IHistorique> getListeHisto() {
		return collecDhisto;
	}

	public void addHistorique (IHistorique histo){
		collecDhisto.add(histo);
	}
	
	public void deleteHistorique (int index){
		IHistorique his = collecDhisto.get(index);
		collecDhisto.remove(his);
	}
	
	public void deleteAllHistorique(){
		collecDhisto.clear();
	}
}
